package com.example.demo.interview;

public class TryDemo {

    public static void main(String[] args) {
        System.out.println(test1());
    }

    public static int test1() {
        int i = 0;
        try {
            System.out.println("i4=" + i);
            i = 2;
            System.out.println("i3=" + i);
            return i;
        } finally {
            System.out.println("i1=" + i);
            i = 3;
            System.out.println("i2=" + i);
        }
    }
}